package com.tn.openrpc.util;

/**
 * The exception thrown when an error occurs in a factory.
 *
 * @see Factory
 * @see ParametrizedFactory
 */
public class FactoryException extends Exception
{

  /**
   * Creates a new <code>FactoryException</code> initialized with the <code>message</code>.
   */
  public FactoryException(String message)
  {

    super(message);
  }

  /**
   * Creates a new <code>FactoryException</code> initialized with the <code>message</code> and <code>cause</code>.
   */
  public FactoryException(String message, Throwable cause)
  {

    super(message, cause);
  }
}
